package com.itms.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * CARRIER
 * @author 
 */
public class Carrier implements Serializable {
    private BigDecimal id;

    private String carrierCode;

    private String carrierName;

    private String address;

    private String contactname1;

    private String tel1;

    private String contactname2;

    private String tel2;

    private String contactname3;

    private String tel3;

    private String isValid;

    private Date createDate;

    private BigDecimal createUserId;

    private Date lastUpdateDate;

    private BigDecimal lastUpdateUserId;

    private static final long serialVersionUID = 1L;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getCarrierCode() {
        return carrierCode;
    }

    public void setCarrierCode(String carrierCode) {
        this.carrierCode = carrierCode;
    }

    public String getCarrierName() {
        return carrierName;
    }

    public void setCarrierName(String carrierName) {
        this.carrierName = carrierName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContactname1() {
        return contactname1;
    }

    public void setContactname1(String contactname1) {
        this.contactname1 = contactname1;
    }

    public String getTel1() {
        return tel1;
    }

    public void setTel1(String tel1) {
        this.tel1 = tel1;
    }

    public String getContactname2() {
        return contactname2;
    }

    public void setContactname2(String contactname2) {
        this.contactname2 = contactname2;
    }

    public String getTel2() {
        return tel2;
    }

    public void setTel2(String tel2) {
        this.tel2 = tel2;
    }

    public String getContactname3() {
        return contactname3;
    }

    public void setContactname3(String contactname3) {
        this.contactname3 = contactname3;
    }

    public String getTel3() {
        return tel3;
    }

    public void setTel3(String tel3) {
        this.tel3 = tel3;
    }

    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public BigDecimal getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(BigDecimal createUserId) {
        this.createUserId = createUserId;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public BigDecimal getLastUpdateUserId() {
        return lastUpdateUserId;
    }

    public void setLastUpdateUserId(BigDecimal lastUpdateUserId) {
        this.lastUpdateUserId = lastUpdateUserId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Carrier other = (Carrier) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCarrierCode() == null ? other.getCarrierCode() == null : this.getCarrierCode().equals(other.getCarrierCode()))
            && (this.getCarrierName() == null ? other.getCarrierName() == null : this.getCarrierName().equals(other.getCarrierName()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getContactname1() == null ? other.getContactname1() == null : this.getContactname1().equals(other.getContactname1()))
            && (this.getTel1() == null ? other.getTel1() == null : this.getTel1().equals(other.getTel1()))
            && (this.getContactname2() == null ? other.getContactname2() == null : this.getContactname2().equals(other.getContactname2()))
            && (this.getTel2() == null ? other.getTel2() == null : this.getTel2().equals(other.getTel2()))
            && (this.getContactname3() == null ? other.getContactname3() == null : this.getContactname3().equals(other.getContactname3()))
            && (this.getTel3() == null ? other.getTel3() == null : this.getTel3().equals(other.getTel3()))
            && (this.getIsValid() == null ? other.getIsValid() == null : this.getIsValid().equals(other.getIsValid()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getLastUpdateDate() == null ? other.getLastUpdateDate() == null : this.getLastUpdateDate().equals(other.getLastUpdateDate()))
            && (this.getLastUpdateUserId() == null ? other.getLastUpdateUserId() == null : this.getLastUpdateUserId().equals(other.getLastUpdateUserId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCarrierCode() == null) ? 0 : getCarrierCode().hashCode());
        result = prime * result + ((getCarrierName() == null) ? 0 : getCarrierName().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getContactname1() == null) ? 0 : getContactname1().hashCode());
        result = prime * result + ((getTel1() == null) ? 0 : getTel1().hashCode());
        result = prime * result + ((getContactname2() == null) ? 0 : getContactname2().hashCode());
        result = prime * result + ((getTel2() == null) ? 0 : getTel2().hashCode());
        result = prime * result + ((getContactname3() == null) ? 0 : getContactname3().hashCode());
        result = prime * result + ((getTel3() == null) ? 0 : getTel3().hashCode());
        result = prime * result + ((getIsValid() == null) ? 0 : getIsValid().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getLastUpdateDate() == null) ? 0 : getLastUpdateDate().hashCode());
        result = prime * result + ((getLastUpdateUserId() == null) ? 0 : getLastUpdateUserId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", carrierCode=").append(carrierCode);
        sb.append(", carrierName=").append(carrierName);
        sb.append(", address=").append(address);
        sb.append(", contactname1=").append(contactname1);
        sb.append(", tel1=").append(tel1);
        sb.append(", contactname2=").append(contactname2);
        sb.append(", tel2=").append(tel2);
        sb.append(", contactname3=").append(contactname3);
        sb.append(", tel3=").append(tel3);
        sb.append(", isValid=").append(isValid);
        sb.append(", createDate=").append(createDate);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", lastUpdateDate=").append(lastUpdateDate);
        sb.append(", lastUpdateUserId=").append(lastUpdateUserId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}